/**
 *
 * gantt style
 * @author Brant Liu
 * @email lbf1988@qq.com
 * @date 2020/5/25
 * @version 1.0.1
 */
body {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

::-webkit-scrollbar-button:vertical {
    display: none
}

::-webkit-scrollbar-corner,
::-webkit-scrollbar-track {
    background-color: #e2e2e2
}

::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: rgba(0, 0, 0, .3)
}

::-webkit-scrollbar-thumb:vertical:hover {
    background-color: rgba(0, 0, 0, .35)
}

::-webkit-scrollbar-thumb:vertical:active {
    background-color: rgba(0, 0, 0, .38)
}

.gantt-layout,
.gantt-layout-view,
.gantt-layout-view .gantt-layout-resizer,
.gantt-layout-view .gantt-layout-grid {
    position: relative;
}

.gantt-layout {
    font-size: 12px;
}

.gantt-layout {
    border: 1px solid #cecece;
}

.gantt-layout-view,
.gantt-layout-view .gantt-layout-grid,
.gantt-layout-view .gantt-layout-resizer {
    height: 100%;
}

.gantt-layout-view > div {
    vertical-align: top;
}

.gantt-layout-view .gantt-layout-x-scroll,
.gantt-layout-view .gantt-layout-y-scroll {
    position: absolute;
    z-index: 20;
    background-color: #fff;
}

.gantt-layout-view .gantt-layout-x-scroll {
    height: auto;
    bottom: 0;
    left: 0;
    right: 0;
}

.gantt-layout-view .gantt-layout-x-scroll .gantt-scroll-wrapper {
    position: relative;
    height: 8px;
    overflow: hidden;
    overflow-x: auto;
    background-color: #e2e2e2;
}

.gantt-layout-view .gantt-layout-x-scroll .gantt-scroll-wrapper .gantt-layout-content{
    height: 8px;
}

.gantt-layout-view .gantt-layout-y-scroll {
    width: auto;
    top: 0;
    right: 0;
    bottom: 0;
}

.gantt-layout-view .gantt-layout-y-scroll .gantt-scroll-wrapper {
    position: relative;
    width: 8px;
    overflow: hidden;
    overflow-y: auto;
}

.gantt-layout-view .gantt-layout-grid,
.gantt-layout-view .gantt-layout-resizer {
    float: left;
}

.gantt-layout-view .gantt-layout-resizer {
    width: 1px;
    background-color: #cecece;
}

.gantt-layout-view .gantt-layout-resizer > .gantt-layout-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 9px;
    margin-left: -4px;
    cursor: e-resize;
}

.gantt-layout-view .gantt-layout-grid,
.gantt-layout-view .gantt-layout-grid .gantt-layout-content {
    overflow: hidden;
}

.gantt-layout-view .gantt-layout-grid .gantt-layout-content {
    white-space: nowrap;
}

.gantt-layout-content .gantt-layout-header,
.gantt-layout-content .gantt-layout-data {
    font-size: 0;
    overflow: hidden;
}

.gantt-grid-cell {
    position: relative;
    display: inline-block;
    vertical-align: top;
    font-size: 12px;
    padding: 6px 8px;
    height: 100%;
    min-width: 31px;
    min-height: 31px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-bottom: 1px solid #cecece;
}

.gantt-grid-cell + .gantt-grid-cell {
    border-left: 1px solid #cecece;
}

.gantt-layout-header {
    min-height: 30px;
}

.gantt-layout-header .gantt-grid-row {
    height: 100%;
}

.gantt-layout-header .gantt-grid-cell {
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.gantt-layout-header .gantt-grid-cell {
    color: #a6a6a6;
}

.gantt-layout-header .gantt-grid-cell + .gantt-grid-cell {
    border-left: 1px solid #cecece;
}

.gantt-layout-data .gantt-grid-row {
    position: relative;
    z-index: 0;
}

.gantt-layout-data .gantt-grid-row,
.gantt-layout-data .gantt-grid-cell {
    min-height: 31px;
}

.gantt-layout-data .gantt-grid-cell + .gantt-grid-cell {
    border-left-color: transparent;
}

.gantt-layout-grid-left .gantt-layout-data .gantt-grid-cell {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gantt-layout-grid-right .gantt-layout-data .gantt-grid-cell {
    border-color: #ebebeb;
}

.gantt-layout-grid-right .gantt-layout-data .gantt-grid-cell + .gantt-grid-cell {
    border-color: #ebebeb;
}

.gantt-layout-grid-right .gantt-grid-cell {
    position: relative !important;
    z-index: 10;
    overflow: inherit !important;
    text-align: center;
}

.gantt-layout-grid-right .gantt-schedule,
.gantt-layout-grid-right .gantt-schedule-final {
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.gantt-layout-grid-right .gantt-schedule,
.gantt-layout-grid-right .gantt-schedule-final {
    position: absolute;
    z-index: 11;
    top: 20%;
    left: 2px;
    bottom: 20%;
    border-radius: 2px;
    background-color: #b8b8b8;
}

.gantt-layout-grid-right .gantt-schedule-final {
    z-index: 12;
    background-color: #06d791;
}

.gantt-add {
    position: absolute;
    z-index: 1000000;
    width: 40px;
    height: 40px;
    line-height: 34px;
    text-align: center;
    font-size: 26px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 0 5px #cecece;
    color: #666;
    background-color: #fff;
    cursor: pointer;
}

.gantt-add,
.gantt-add * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*弹窗*/
.gantt-modal {
    position: absolute;
    z-index: 999999;
    width: 500px;
    height: 360px;
    top: 50%;
    left: 50%;
    margin-top: -180px;
    margin-left: -250px;
    box-shadow: 0 0 5px #cecece;
    border-radius: 4px;
    background-color: #fff;
    display: none;
}

.gantt-modal.show {
    display: block;
}

.gantt-modal-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gantt-modal-title {
    position: relative;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    text-align: left;
    border-bottom: 1px solid #ebebeb;
}

.gantt-modal-form {
    position: relative;
    padding: 15px;
    height: 320px;
}

.gantt-modal-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    text-align: center;
}

.gantt-modal-footer .btn + .btn {
    margin-left: 10px;
}